package ink.metoo.gude.module.security.domain.dto

import ink.metoo.gude.util.RegexUtils
import jakarta.validation.constraints.Email
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Pattern

class RestPasswordDTO {

    @NotBlank
    @Email
    var email: String = ""

    @NotBlank
    @Pattern(
        regexp = RegexUtils.BASIC_PASSWORD_PATTERN,
        message = "新密码长度不能小于8位，且必须包英文和数字"
    )
    var newPassword: String = ""

    @NotBlank
    var verificationCode: String = ""

}